const mongoose = require('mongoose');
const config = require('./config');

let db1 = mongoose.createConnection(config.admin);
let db2 = mongoose.createConnection(config.cat);

let admin = db1.model('kittyCat',{
    name:String,
    age:Number,
    time:Date,
    description:String
})

let cat = db2.model('kittyCat',{
    name:String,
    age:Number,
    time:Date,
    description:String
})

module.exports={
    admin ,
    cat
}

